<template>
    <main>
        <div class="page-title"><h1>Chrome 更新日志</h1></div>

        <div class="changelog-tab">
            <ul>
                <li><a href="/changelog/chrome">Chrome插件</a></li>
                <li><a href="/changelog/mac">macOS 版</a></li>
                <li><a href="/changelog/windows">Windows 版</a></li>
                <li><a href="/changelog/ios">iOS 版</a></li>
                <li><a href="/changelog/android">Android 版</a></li>
                <li><a href="/changelog/tv">Android TV版</a></li>
            </ul>
        </div>

        <a class="old-version" href="/old-version">*全平台稳定版下载</a>

        <div class="changelog-wrapper container">
            <ul>
                <li class="changelog-content"><a id="cl-like" href="/r/chrome-reviews">点个赞，开发哥哥更新更努力</a>
                    <p id="cl-date">2021-1-19 <small>7.0.5</small></p>
                    <p id="cl-type">修复</p>
                    <p id="cl-content">修复弹窗缓存 bug</p></li>
                <li class="changelog-content"><a id="cl-like" href="/r/chrome-reviews">点个赞，开发哥哥更新更努力</a>
                    <p id="cl-date">2021-1-7 <small>7.0.4</small></p>
                    <p id="cl-type">修复</p>
                    <p id="cl-content">修复已知bug</p></li>
                <li class="changelog-content"><a id="cl-like" href="/r/chrome-reviews">点个赞，开发哥哥更新更努力</a>
                    <p id="cl-date">2020-12-30 <small>7.0.2</small></p>
                    <p id="cl-type">修复</p>
                    <p id="cl-content">修复已知bug</p></li>
            </ul>
        </div>
    </main>
</template>

<script>
export default {
    name: "Changelog"
}
</script>

<style scoped lang="scss">
main {
    .page-title {
        display: flex;
        justify-content: center;
        padding: 164px 0 60px;

        h1 {
            display: block;
            font-size: 48px;
            font-weight: 400;
            position: relative;
            text-align: center;
        }

        h1:before {
            display: block;
            content: "";
            width: 84px;
            height: 36px;
            position: absolute;
            background-image: url(../assets/element_dash.cd709.png);
            background-repeat: no-repeat;
            background-size: 84px 36px;
            top: -20px;
            left: -40px;
        }
    }

    .changelog-tab {
        margin-bottom: 64px;

        ul {
            display: flex;
            align-items: center;
            width: 635px;
            margin: 0 auto;

            li {
                width: 16.6%;

                a {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 13px;
                    color: #333;
                    height: 36px;
                    width: 100%;
                    border: 1px solid #e9eaf5;
                    border-right: 0;
                    transition: all .2s ease;
                }

                a:hover {
                    background: #f6f6fe;
                    color: #4d55e8;
                }
            }

            li:first-child a {
                border-radius: 4px 0 0 4px;
            }

            li:last-child a {
                border: 1px solid #e9eaf5;
                border-radius: 0 4px 4px 0;
            }
        }
    }

    .old-version {
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 635px;
        margin: -32px auto 32px;
        height: 32px;
        border-top: 1px solid #f8f8f8;
        border-bottom: 1px solid #f8f8f8;
        font-size: 13px;
        color: #4d55e8;
    }

    .changelog-wrapper {
        display: block;
        margin: 0 auto 50px;
        position: relative;
        ul {
            margin: 0;
            padding: 0;
            li:first-child {
                background: #f6f6fe;
                border-radius: 4px;
                p {
                    small {
                        background: green!important;
                        color: #fff!important;
                    }
                    small:before {
                        content: "";
                        display: block;
                        width: 4px;
                        height: 24px;
                        background: #4d55e8;
                        position: absolute;
                        top: -5px;
                        left: -81px;
                    }
                    small:after {
                        content: " | 当前版本";
                    }
                }
            }
            li {
                list-style: none;
                padding: 32px 16px;
                border-bottom: 1px solid #ededed;
            }
            #cl-like {
                display: block;
                color: #fff;
                height: 38px;
                line-height: 38px;
                background: #4d55e8;
                position: absolute;
                right: -5px;
                top: 20px;
                width: 220px;
                border-radius: 50px 0 0 50px;
                text-align: center;
                padding-left: 24px;
                box-sizing: border-box;
                transition: all ease .2s;
                font-size: 14px;
            }
            #cl-like:after {
                display: block;
                position: absolute;
                width: 24px;
                height: 24px;
                background-color: #fff;
                mask: url(../assets/ic_hands.e68e1.svg);
                top: 7px;
                left: 9px;
                content: "";
            }
            #cl-date {
                font-size: 12px;
                font-weight: 600;
                small {
                    position: relative;
                    color: #333;
                    background: #ccc;
                    padding: 2px 5px;
                    border-radius: 10px;
                    font-size: 10px;
                }
            }
            #cl-type {
                font-size: 18px;
                font-weight: 400;
                margin: 16px 0 8px;
            }
            #cl-content {
                color: #6c6c6c;
                line-height: 1.6;
                font-size: 14px;
            }
        }
    }
}
</style>
